package cn.dvptech.remotecontrol.ui.adapter

import android.annotation.SuppressLint
import android.content.Context
import android.net.wifi.p2p.WifiP2pDevice
import android.view.ViewGroup
import android.widget.TextView
import cn.dvptech.remotecontrol.R
import cn.dvptech.remotecontrol.app.AppAdapter

/**
 *    author  : ulongx
 *    website : www.dvptech.cn
 *    date    : 2024/6/26
 *    desc    : 远程设备列表
 */
class DeviceAdapter constructor(context: Context)
    : AppAdapter<WifiP2pDevice?>(context) {

    override fun onCreateViewHolder(p0: ViewGroup, p1: Int): AppViewHolder {
        return ViewHolder()
    }

    inner class ViewHolder : AppViewHolder(R.layout.remote_server_item_layout) {

        private val remoteDeviceTv: TextView? by lazy { findViewById(R.id.remote_device_tv) }
        private val ipAddressTv: TextView? by lazy { findViewById(R.id.ip_address_tv) }
        @SuppressLint("SetTextI18n")
        override fun onBindView(position: Int) {
            getItem(position)?.let {

            }

        }


    }
}